(function (window,undefined) {
    // 工具对象
    var Tools = {
        // 生成指定范围的随机整数
        getRandom: function (min, max) {
            return Math.floor(Math.random() * (max - min + 1)) + min;
        },
        // 对象拷贝
        extend: function (parent, child) {
            for (var key in parent) {
                if (child[key]) {
                    continue;
                }
                child[key] = parent[key];
            }
        }
    }
    window.Tools = Tools;
})(window,undefined)